//题目：学习static定义静态变量的用法
//1.程序分析：
//2.程序源代码：
#include "stdio.h"
void varfunc() {
	int var = 0;
	static int static_var = 0;
	printf("\40:var equal %d \n", var);
	printf("\40:static var equal %d \n", static_var);
	printf("\n");
	var++;
	static_var++;
}
int main() {
	int i;
	for (i = 0; i < 3; i++)
		varfunc();
}
